home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / util / dtype / PCD-DT.lha / PCD-DT / Install next >
Text File  |  1998-10-20  |  2KB  |  122 lines

  1. ;$VER pcd.datatype Install 43.9
  2.  
  3. (set #dt-dir
  4.     (askdir
  5.         (prompt "Where do you store your datatypes ?")
  6.         (help @askdir-help)
  7.         (default "SYS:Classes/DataTypes")
  8.     )
  9. )
  10.  
  11. (set #dc-dir
  12.     (askdir
  13.         (prompt "Where do you store your descriptor files ?")
  14.         (help @askdir-help)
  15.         (default "DEVS:DataTypes")
  16.     )
  17. )
  18.  
  19. (set #c-dir
  20.     (askdir
  21.         (prompt "This datatype requires the PCD decoder 'pcdtoppm',\nwhich MUST be available in your path !\nWhere do you want to store the decoder ?")
  22.         (help @askdir-help)
  23.         (default "C:")
  24.     )
  25. )
  26.  
  27. (set #prefs-dir
  28.     (askdir
  29.         (prompt "Where do you store your preferences for datatypes ?")
  30.         (help @askdir-help)
  31.         (default "SYS:Prefs/DataTypes")
  32.     )
  33. )
  34.  
  35. (set #lib 0)
  36. (if (not (patmatch "68881|68882|FPU040" (database "fpu")))
  37.     (
  38.     (if (patmatch "68020|68030|68040" (database "cpu"))
  39.         (
  40.         (set #lib 1)
  41.         )
  42.     )
  43.     (if (patmatch "68060" (database "cpu"))
  44.         (
  45.         (set #lib 2)
  46.         )
  47.     )
  48.     )
  49. )
  50. (set #libname
  51.     (select
  52.         (askchoice
  53.             (prompt "Select the type of CPU/FPU combination for the render.library")
  54.             (choices "68020/030 without FPU" "68020/030 with FPU or 68040" "68060")
  55.             (default #lib)
  56.             (help @askchoice-help)
  57.         )
  58.     "render.library" "render.library_68040" "render.library_68060"
  59.     )
  60. )
  61.  
  62. (set #icon
  63.     (askchoice
  64.         (prompt "What type of icons do you want to use ?")
  65.         (help @askchoice-help)
  66.         (choices "MWB style (8 colors)" "NewIcons style")
  67.     )
  68. )
  69.  
  70. (copylib
  71.     (prompt "PCD Datatype Version Checking")
  72.     (source "Classes/DataTypes/pcd.datatype")
  73.     (dest #dt-dir)
  74.     (help @copylib-help)
  75.     (confirm)
  76. )
  77.  
  78. (copylib
  79.     (prompt "render.library Version Checking")
  80.     (source (tackon "Libs" #libname))
  81.     (dest "LIBS:")
  82.     (newname "render.library")
  83.     (help @copylib-help)
  84.     (confirm)
  85. )
  86.  
  87. (copyfiles
  88.     (source "Devs/DataTypes/PCD")
  89.     (dest #dc-dir)
  90. )
  91.  
  92. (copyfiles
  93.     (source "C/pcdtoppm")
  94.     (dest #c-dir)
  95. )
  96.  
  97. (copyfiles
  98.     (source "Env/DataTypes/pcd.prefs")
  99.     (dest "ENVARC:DataTypes")
  100. )
  101.  
  102. (copyfiles
  103.     (source "Env/DataTypes/pcd.prefs")
  104.     (dest "ENV:DataTypes")
  105. )
  106.  
  107. (copyfiles
  108.     (source "Prefs/PCDPrefs")
  109.     (dest #prefs-dir)
  110.     (infos)
  111. )
  112.  
  113. (if (= #icon 1)
  114.     (
  115.     (copyfiles
  116.         (source "NewIcons/Tool.info")
  117.         (dest #prefs-dir)
  118.         (newname "PCDPrefs.info")
  119.     )
  120.     )
  121. )
  122.